package com.come4loves.game.module.card.dao.impl;

import org.springframework.stereotype.Repository;

import com.come4loves.core.dbcenter.dao.BaseDaoImpl;
import com.come4loves.game.dbproxy.entity.CardGroup;
import com.come4loves.game.module.card.dao.CardGroupDao;
import com.come4loves.game.module.card.model.CardGroupModel;

@Repository
public class CardGroupDaoImpl extends BaseDaoImpl implements CardGroupDao {

	@Override
	public CardGroup getCardGroup(long actorId) {
		return get(actorId, CardGroup.class);
	}
	
	@Override
	public CardGroupModel getCardGroupModel(long actorId, int groupId) {
		CardGroup cardGroup = get(actorId, CardGroup.class);
		return cardGroup.cardGroupMap.get(groupId);
	}

}
